// TreeTraversal_Shujun.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

#include "BTreeImpl.h"

int _tmain(int argc, _TCHAR* argv[])
{
	char sz[] = {'A', 'B', 'C','D','E','F','G','H','I', 'J', 'K'};
	CBinTree<char> test(sz,11);
	test.BreadthTravelsal();

	test.PreorderTraversal();

	test.PreorderTraversal(false);


	test.InorderTraversal();

	test.InorderTraversal(false);

	test.PostorderTraversal();
	test.PostorderTraversal(false);


	int a[]={1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

	CBinTree<int> treeTest(a, 10);

	_tprintf_s(L"BreadthFirst Travelsal\n");
	treeTest.BreadthTravelsal();


	_tprintf_s(L"InorderTraversal\n");
	treeTest.InorderTraversal();

	_tprintf_s(L"\nPreorderTraversal\n");
	treeTest.PreorderTraversal();

	_tprintf_s(L"\nPostorderTraversal\n");
	treeTest.PostorderTraversal();
	return 0;

}